// QPPltPara.h : header file
//

#ifndef __QPPLTPARA_H__
#define __QPPLTPARA_H__

/////////////////////////////////////////////////////////////////////////////
// CQPPltPara dialog
#include "amsEdit.h"
#include "xmldialog.h"
#include "GeoStat.h"
#include "GsStru.h"
#include "StatGraph.h"

class CDataTable;
class C2DBaseView;
class dmDataArray;
class dmBlockDataNew;
class CdmDBBase;

class CQPPltPara : public CXMLDialog
{
public:
	CdmDBBase *m_pDB;
	CDataTable* m_dataTable;	
	long m_recordnum;
	CGeoStatGraph *m_StatGraphObj;
	GsDiscPnt* m_DiscPnts;
	GsDiscPnt* m_DiscPnts2;

	dmBlockDataNew* m_blockModelData;
	dmDataArray *m_dataArray;
	dmDataArray *m_oreArray;
	long m_StatPntIndex;
	int m_type;

protected:
	void AllDataSetWindowText();
	void ReadNode();
	void WriteNode();
	bool IsFilterField(CString fldname);
	void OpenDrillFile();
	void QpXauto();
	void QpYauto();
	void ChangeQpInputfile();
	void Selchangeqqorpp();
	bool m_bInitDlg;

	// Construction
public:
	CQPPltPara(CWnd* pParent = NULL);	// standard constructor
	~CQPPltPara();

	// Dialog Data
	//{{AFX_DATA(CQPPltPara)
	enum { IDD = IDD_QPPLT1 };
	CBCGPComboBox	m_cbDistype;
	CEdit	m_eddatafl;
	CAMSNumericEdit	m_edTmin;
	CAMSNumericEdit	m_edTmax;
	CAMSNumericEdit	m_ednpts;
	CAMSNumericEdit	m_edymin;
	CAMSNumericEdit	m_edymax;
	CAMSNumericEdit	m_edxmin;
	CAMSNumericEdit	m_edxmax;
	CButton	m_yauto;
	CButton	m_xauto;
	CBCGPComboBox	m_qqorpp;
	CBCGPComboBox	m_ivrl;
	CBCGPComboBox	m_ilog;
	CButton	m_allpts;
	CString	m_datafl;
	CString	m_title;
	int		m_nDistype;
	int		m_nLog;
	int		m_nVrl;
	BOOL	m_bAllpts;
	BOOL	m_bXauto;
	BOOL	m_bYauto;
	int		m_nQQorPP;
	//}}AFX_DATA
	float	m_tmax;
	float	m_tmin;
	float	m_xmax;
	float	m_xmin;
	float	m_ymax;
	float	m_ymin;
	long	m_npoints;


	// Overrides
	// ClassWizard generate virtual function overrides
	//{{AFX_VIRTUAL(CQPPltPara)
protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

	// Implementation
protected:
	// Generated message map functions
	//{{AFX_MSG(CQPPltPara)
	virtual BOOL OnInitDialog();
	afx_msg void OnQpAllpoints();
	afx_msg void OnQpOpenfile();
	afx_msg void OnQpXauto();
	afx_msg void OnQpYauto();
	afx_msg void OnSelchangeqqorpp();
	virtual void OnOK();
	afx_msg void OnChangeQpNpoints();
	afx_msg void OnChangeQpTmax();
	afx_msg void OnChangeQpTmin();
	afx_msg void OnChangeQpXmax();
	afx_msg void OnChangeQpXmin();
	afx_msg void OnChangeQpYmax();
	afx_msg void OnChangeQpYmin();
	afx_msg void OnChangeQpInputfile();
	afx_msg void OnCvParaManager();
	afx_msg void OnDestroy();
	afx_msg void OnSelchangeQpIvrl();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

};


/////////////////////////////////////////////////////////////////////////////
#endif // __QPPLTPARA_H__
